set(sources 
xfapplet.h
xfapplet.c
chooser.c 
trans.c 
xfce-panel-plugin.h
xfce-panel-plugin.c 
xfce-fake.c
xfce-fake.h
)

INCLUDE(FindPkgConfig)
FIND_PACKAGE(PkgConfig REQUIRED) 
 

pkg_check_modules(GTK REQUIRED gtk+-2.0)
pkg_check_modules(LIBBONOBOUI REQUIRED libbonoboui-2.0)
pkg_check_modules(LIBPANEL REQUIRED libpanelapplet-2.0)

include_directories(
${GTK_INCLUDE_DIRS} 
${LIBBONOBOUI_INCLUDE_DIRS}
${LIBPANEL_INCLUDE_DIRS}
)


link_directories(
${GTK_INCLUDE_DIRS}
${LIBBONOBOUI_INCLUDE_DIRS}
${LIBPANEL_INCLUDE_DIRS}
) 

add_executable(${PROJECT_NAME} ${sources})

target_link_libraries(
${PROJECT_NAME} 
${GTK_LIBRARIES}
${LIBBONOBOUI_LIBRARIES}
${LIBPANEL_LIBRARIES}
)

install (TARGETS ${PROJECT_NAME} RUNTIME DESTINATION ./)
install (FILES  XFCE_Panel_Popup.xml DESTINATION ./share/ui)

